clear;
load_settings;
data = getData('SANDBOX_RUN1');
data = addBackgroundModel(data);
save([data_root 'clean_data/sandbox_run1_bgm.mat'], 'data');

clear;
load_settings;
data = getData('SANDBOX_RUN2');
data = addBackgroundModel(data(1:8,:)); % 9th camera has only one image, insufficient to calculate bg model
save([data_root 'clean_data/sandbox_run2_bgm.mat'], 'data');

clear;
load_settings;
data = getData('ITER_DATA');
data = addBackgroundModel(data);
save([data_root 'clean_data/iter_bgm.mat'], 'data');

clear;
load_settings;
data = getData('LIVE_MTURK');
data = addBackgroundModel(data);
save([data_root 'clean_data/live_mturk_bgm.mat'], 'data');

clear;
load_settings;
data = getData('SR1_ITER_IMPROVED');
data = addBackgroundModel(data);
save([data_root 'clean_data/sr1_ii_bgm.mat'], 'data');

clear;
load_settings;
data = getData('SR1_ITER_IMPROVED_V2');
data = addBackgroundModel(data);
save([data_root 'clean_data/sr1_ii_v2_bgm.mat'], 'data');

clear;
load_settings;
data = getData([data_root 'clean_data/sr2_iter_improved.mat']);
data = addBackgroundModel(data);
save([data_root 'clean_data/sr2_ii_bgm.mat'], 'data');

clear;
load_settings;
data = getData([data_root 'clean_data/sr2_iter_improved.mat']);
data = addBackgroundModel(data);
save([data_root 'clean_data/sr2_ii_v2_bgm.mat'], 'data');

clear;
load_settings;
data = getData([data_root 'clean_data/live_iter_improved_v2.mat']);
data = addBackgroundModel(data);
save([data_root 'clean_data/live_ii_v2_bgm.mat'], 'data');
